<?php
namespace App\Service\Member;

use App\Service\BaseService as Service;

class BaseService extends Service
{
    //基础服务

    //通过token获取UID
    public function uidByToken($token)
    {
        $res = (array) $this->dbConn($this->dbUlogin)
            ->where('token', $token)
            ->orderBy('id', 'desc')
            ->first();
        return empty($res) ? 0 : $res['uid'];
    }
}